<template>
    <button
        class="block w-full bg-indigo-600 mt-5 py-2 rounded-2xl hover:bg-indigo-700 hover:-translate-y-1 transition-all duration-500 text-white font-semibold mb-2">{{
            text }}</button>
</template>

<script lang="ts" setup>
// 自动注册的全局组件
defineProps(['text']);
</script>

<style lang="scss" scoped></style>